# Contributor: mio <miyopan@e.email>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apostrophe-revealjs
pkgver=5.1.0
pkgrel=0
pkgdesc="reveal.js (HTML presentation framework) installation for Apostrophe"
url="https://revealjs.com"
arch="aarch64 x86_64" # Install only where apostrophe is available
license="MIT"
source="$pkgname-$pkgver.tar.gz::https://github.com/hakimel/reveal.js/archive/$pkgver.tar.gz"
builddir="$srcdir"/reveal.js-$pkgver
options="!check" # Basic setup version, no tests are run

prepare() {
	default_prepare
	# Clean up unused files
	rm -r .git* .npm* gulpfile.js package*.json
}

package() {
	mkdir -p "$pkgdir"/usr/share/apostrophe/libs
	cp -r "$builddir" "$pkgdir"/usr/share/apostrophe/libs/reveal.js
}

sha512sums="
33ba5bb62dbf15c64d4ba483c250709a146beb6440cc886f09ef4559287d39bccbbe3e6e9a65233951b5169f302bf9f8d8ddbbb29bc71e204a12720c6ca8887e  apostrophe-revealjs-5.1.0.tar.gz
"
